{% extends "default.html" %}

{% load i18n %}
{% load jalali_view %}
{% load digg_paginator %}

{% block title %} {% trans "Reports" %}{% endblock %}

{% block page_content %}
<h3>{% trans "Reports" %}</h3>
<table border="1" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th>{% trans "Title" %}</th>
			<th>{% trans "Advertizer" %}</th>
			<th></th>
		</tr>
	</thead>
	{% for ad in current_page.object_list %}
	<tr>
		<td>{{ ad.title }}</td>
		<td>{{ ad.advertizer }}</td>
		<td>
			<a href="/report/ads/likes/{{ ad.id }}/">{% trans "Popularity" %}</a> &bull;
			<a href="/report/ads/views/{{ ad.id }}/">{% trans "View History" %}</a>
		</td>
	</tr>
	{% endfor %}
</table>

{% digg_paginator %}

{% endblock page_content %}
